Optimal. Leaf size=195 \[ \frac {\sin (c+d x) \sqrt {\sec (c+d x)}}{6 d \left (a^3 \sec (c+d x)+a^3\right )}+\frac {\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}+\frac {\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}-\frac {\sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{5 d (a \sec (c+d x)+a)^3}-\frac {4 \sin (c+d x) \sqrt {\sec (c+d x)}}{15 a d (a \sec (c+d x)+a)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.35, antiderivative size = 195, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.348, Rules used = {3238, 3816, 4019, 4020, 3787, 3771, 2639, 2641} \[ \frac {\sin (c+d x) \sqrt {\sec (c+d x)}}{6 d \left (a^3 \sec (c+d x)+a^3\right )}+\frac {\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{6 a^3 d}+\frac {\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{10 a^3 d}-\frac {\sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{5 d (a \sec (c+d x)+a)^3}-\frac {4 \sin (c+d x) \sqrt {\sec (c+d x)}}{15 a d (a \sec (c+d x)+a)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2639
Rule 2641
Rule 3238
Rule 3771
Rule 3787
Rule 3816
Rule 4019
Rule 4020
Rubi steps
\begin {align*} \int \frac {1}{(a+a \cos (c+d x))^3 \sqrt {\sec (c+d x)}} \, dx &=\int \frac {\sec ^{\frac {5}{2}}(c+d x)}{(a+a \sec (c+d x))^3} \, dx\\ &=-\frac {\sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \sec (c+d x))^3}-\frac {\int \frac {\sqrt {\sec (c+d x)} \left (\frac {a}{2}-\frac {7}{2} a \sec (c+d x)\right )}{(a+a \sec (c+d x))^2} \, dx}{5 a^2}\\ &=-\frac {\sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \sec (c+d x))^3}-\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 a d (a+a \sec (c+d x))^2}-\frac {\int \frac {-2 a^2-\frac {9}{2} a^2 \sec (c+d x)}{\sqrt {\sec (c+d x)} (a+a \sec (c+d x))} \, dx}{15 a^4}\\ &=-\frac {\sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \sec (c+d x))^3}-\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 a d (a+a \sec (c+d x))^2}+\frac {\sqrt {\sec (c+d x)} \sin (c+d x)}{6 d \left (a^3+a^3 \sec (c+d x)\right )}-\frac {\int \frac {-\frac {3 a^3}{4}-\frac {5}{4} a^3 \sec (c+d x)}{\sqrt {\sec (c+d x)}} \, dx}{15 a^6}\\ &=-\frac {\sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \sec (c+d x))^3}-\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 a d (a+a \sec (c+d x))^2}+\frac {\sqrt {\sec (c+d x)} \sin (c+d x)}{6 d \left (a^3+a^3 \sec (c+d x)\right )}+\frac {\int \frac {1}{\sqrt {\sec (c+d x)}} \, dx}{20 a^3}+\frac {\int \sqrt {\sec (c+d x)} \, dx}{12 a^3}\\ &=-\frac {\sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \sec (c+d x))^3}-\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 a d (a+a \sec (c+d x))^2}+\frac {\sqrt {\sec (c+d x)} \sin (c+d x)}{6 d \left (a^3+a^3 \sec (c+d x)\right )}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx}{20 a^3}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{12 a^3}\\ &=\frac {\sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{10 a^3 d}+\frac {\sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{6 a^3 d}-\frac {\sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{5 d (a+a \sec (c+d x))^3}-\frac {4 \sqrt {\sec (c+d x)} \sin (c+d x)}{15 a d (a+a \sec (c+d x))^2}+\frac {\sqrt {\sec (c+d x)} \sin (c+d x)}{6 d \left (a^3+a^3 \sec (c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 2.09, size = 363, normalized size = 1.86 \[ \frac {2 \cos ^6\left (\frac {1}{2} (c+d x)\right ) \left (-\frac {1}{32} \csc \left (\frac {c}{2}\right ) \sec \left (\frac {c}{2}\right ) \left (36 \cos \left (\frac {1}{2} (c-d x)\right )+9 \cos \left (\frac {1}{2} (3 c+d x)\right )+7 \cos \left (\frac {1}{2} (c+3 d x)\right )+26 \cos \left (\frac {1}{2} (5 c+3 d x)\right )+10 \cos \left (\frac {1}{2} (3 c+5 d x)\right )+5 \cos \left (\frac {1}{2} (7 c+5 d x)\right )+3 \cos \left (\frac {1}{2} (5 c+7 d x)\right )\right ) \sec ^5\left (\frac {1}{2} (c+d x)\right ) \sqrt {\sec (c+d x)}+\frac {2 i \sqrt {2} e^{-i (c+d x)} \sqrt {\frac {e^{i (c+d x)}}{1+e^{2 i (c+d x)}}} \left (3 \left (-1+e^{2 i c}\right ) \sqrt {1+e^{2 i (c+d x)}} \, _2F_1\left (-\frac {1}{4},\frac {1}{2};\frac {3}{4};-e^{2 i (c+d x)}\right )-5 \left (-1+e^{2 i c}\right ) e^{i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \, _2F_1\left (\frac {1}{4},\frac {1}{2};\frac {5}{4};-e^{2 i (c+d x)}\right )+3 \left (1+e^{2 i (c+d x)}\right )\right )}{-1+e^{2 i c}}\right )}{15 a^3 d (\cos (c+d x)+1)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.71, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {1}{{\left (a^{3} \cos \left (d x + c\right )^{3} + 3 \, a^{3} \cos \left (d x + c\right )^{2} + 3 \, a^{3} \cos \left (d x + c\right ) + a^{3}\right )} \sqrt {\sec \left (d x + c\right )}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{3} \sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.63, size = 270, normalized size = 1.38 \[ \frac {\sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (12 \left (\cos ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-10 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \EllipticE \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-22 \left (\cos ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 \left (\cos ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+7 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-3\right )}{60 a^{3} \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{5} \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{{\left (a \cos \left (d x + c\right ) + a\right )}^{3} \sqrt {\sec \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}\,{\left (a+a\,\cos \left (c+d\,x\right )\right )}^3} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {1}{\cos ^{3}{\left (c + d x \right )} \sqrt {\sec {\left (c + d x \right )}} + 3 \cos ^{2}{\left (c + d x \right )} \sqrt {\sec {\left (c + d x \right )}} + 3 \cos {\left (c + d x \right )} \sqrt {\sec {\left (c + d x \right )}} + \sqrt {\sec {\left (c + d x \right )}}}\, dx}{a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________